package com.epfresh.supplier.entity;

import java.util.ArrayList;
import java.util.List;

public class BaseProduct {
    private List<BaseProductImages> attachments;
    private String packageContainer;
    private String origin;
    private String description;
    private BaseProductAreaConfig areaConfig;
    private String video;
    private String title;
    private String pack;
    private String level;
    private String species;
    private String managerPhone;
    private String id;
    private String chargeUnit;
    private boolean canGroupon;
    //    private boolean status;
    private String storeId;//店铺ID

    private String categoryiiiName;// "豆角",三级分类的名字
    private String categoryivName;// 荷兰豆 四级分类的名字

    private List<productSpecEntity> productSpec;
    public List<productSpecEntity> getProductSpec() {
        return productSpec;
    }

    public void setProductSpec(List<productSpecEntity> productSpec) {
        this.productSpec = productSpec;
    }
    public String getCategoryiiiName() {
        return categoryiiiName;
    }

    public void setCategoryiiiName(String categoryiiiName) {
        this.categoryiiiName = categoryiiiName;
    }

    public String getCategoryivName() {
        return categoryivName;
    }

    public void setCategoryivName(String categoryivName) {
        this.categoryivName = categoryivName;
    }


    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }


    public boolean isCanGroupon() {
        return canGroupon;
    }

    public void setCanGroupon(boolean canGroupon) {
        this.canGroupon = canGroupon;
    }

//    public boolean isStatus() {
//        return status;
//    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public List<BaseProductImages> getAttachments() {
        return this.attachments;
    }
    public List<BaseProductImages> getImagesBanner() {
        List<BaseProductImages> list = new ArrayList<>();
        for (int i = 0;i<attachments.size();i++){
            BaseProductImages baseProductImages = attachments.get(i);
            if (baseProductImages.isBanner()){
                list.add(baseProductImages);
            }
        }
        return list;
    }
    public List<String> getImagesDetail() {
        List<String> list = new ArrayList<>();
        for (int i = 0;i<attachments.size();i++){
            BaseProductImages baseProductImages = attachments.get(i);
            if (!baseProductImages.isBanner()){
                list.add(baseProductImages.getAttachmentUrl());
            }
        }
        return list;
    }

    public void setAttachments(List<BaseProductImages> attachments) {
        this.attachments = attachments;
    }

    public String getPackageContainer() {
        return this.packageContainer;
    }

    public void setPackageContainer(String packageContainer) {
        this.packageContainer = packageContainer;
    }

    public String getOrigin() {
        return this.origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BaseProductAreaConfig getAreaConfig() {
        return this.areaConfig;
    }

    public void setAreaConfig(BaseProductAreaConfig areaConfig) {
        this.areaConfig = areaConfig;
    }

    public String getVideo() {
        return this.video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPack() {
        return this.pack;
    }

    public void setPack(String pack) {
        this.pack = pack;
    }

    public String getSpecies() {
        return this.species;
    }

    public void setSpecies(String species) {
        this.species = species;
    }

    public String getManagerPhone() {
        return this.managerPhone;
    }

    public void setManagerPhone(String managerPhone) {
        this.managerPhone = managerPhone;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getChargeUnit() {
        return this.chargeUnit;
    }

    public void setChargeUnit(String chargeUnit) {
        this.chargeUnit = chargeUnit;
    }

   /* public boolean getStatus() {
        return this.status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }*/
}
